<template>
  <div>
    <van-sticky :offset-top="0">
      <div class="tit">
        <p><span>发现</span></p>
      </div>
    </van-sticky>
    <div class="find-item">
      <div class="left">
        <div class="left-item" @click="$router.push('/design')">
          <p>最佳设计</p>
          <span>2132人收藏</span>
          <div class="all-imgl">
            <img src="https://cdn7.axureshop.com/demo/2090757/images/%E5%8F%91%E7%8E%B0/u511.png" alt="" />
            
          </div>
        </div>
        <div class="left-item"  @click="$router.push('/designer')">
          <p>口碑设计师</p>
          <span>7665人收藏</span>
          <div class="all-imgl">
            <img src="	https://cdn7.axureshop.com/demo/2090757/images/%E5%8F%91%E7%8E%B0/u516.png" alt="" />
          </div>
        </div>
      </div>
      <div class="right" @click="$router.push('/room')">
        <p>特色3D样板间</p>
        <span>3452人收藏</span>
        <div class="all-imgr">
          <img src="https://cdn7.axureshop.com/demo/2090757/images/%E5%8F%91%E7%8E%B0/u506.png" alt="" />
        </div>
      </div>
    </div>
    <div class="tit-bot">
      <p><span>人气</span></p>
    </div>
      <find-bigleft @toForyou="topage"></find-bigleft>
      <find-bigright @toForyou="topage"></find-bigright> 
  </div>
</template>

<script>
import find_bigleft from '../../components/find-bigleft.vue';
import find_bigright from '../../components/find-bigright.vue';
export default {
  components: { find_bigleft,find_bigright },
  methods: {
    topage() {
      this.$router.push(`/foryou`)
    }
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}

.tit {
  padding: 15px 20px 0;
  height: 48px;
  font-size: 24px;
  font-weight: 600;
  font-family: "Arial Negreta", "Arial";
  color: #3e3d3d;
  line-height: 48px;
  background-color: #fff;
}

.find-item {
  display: flex;
  justify-content: space-between;
  p {
        color: #fff;
        line-height: 17px;
        font-weight: 600;
        padding: 10px 12px;
      }

  .left {
    height: 236px;
    .left-item {
      width: 172px;
      position: relative;
      border-radius: 8px;
      height: 112px;
      box-sizing: border-box;
      span {
        background-color: #000;
        color: #fff;
        font-size: 14px;
        display: inline-block;
        margin: 0 12px;
        padding: 3px;
        border-radius: 10px;
        position: absolute;
      }    
      .all-imgl {
        position: absolute;
        right: 10px;
        width: 61px;
        height: 61px;
        bottom: 10px;
        img {
          border-radius: 5px;
          object-fit: cover;
        }
      }

      &:nth-child(1) {
        margin: 0 10px;
        background-color: #d0c7a0;
      }

      &:nth-child(2) {
        margin: 10px 10px 0;
        background-color: #bfc5c5;
      }
    }
  }

  .right {
    width: 172px;
    background-color: #adab9f;
    border-radius: 8px;
    margin: 0 10px 0 0;
    position: relative;

    span {
      background-color: #000;
      color: #fff;
      font-size: 14px;
      display: inline-block;
      margin: 0 12px;
      padding: 3px;
      border-radius: 10px;
    }

    .all-imgr {
      position: absolute;
      right: 20px;
      bottom: 20px;
      height: 130px;
      width: 130px;
      img {
        object-fit: cover;
      }
    }
  }
}

.tit-bot {
  color: #333;
  font-size: 20px;
  font-weight: 800;

  p {
    padding: 10px 10px 0;
  }
}</style>